import type { IPageContentConfig } from '@/global/types'

const skuContentConfig: IPageContentConfig = {
  pageName: 'goodSku',
  layout: {
    border: true,
    size: 'small',
    stripe: true
  },
  items: [
    {
      type: 'expand',
      slotName: 'specificationValues',
      minWidth: '50',
      align: 'center'
    },
    {
      prop: 'storeName',
      label: '店铺名',
      minWidth: '130',
      align: 'center',
      showOverflowTooltip: true
    },
    {
      prop: 'productName',
      label: '商品名字',
      minWidth: '110',
      align: 'center',
      showOverflowTooltip: true
    },
    {
      type: 'custom',
      slotName: 'specificationName',
      label: '规格名称',
      minWidth: '100',
      align: 'center',
      showOverflowTooltip: true
    },
    {
      prop: 'createBy',
      label: '创建人',
      minWidth: '120',
      align: 'center',
      showOverflowTooltip: true
    },
    {
      prop: 'updateBy',
      label: '更新人',
      minWidth: '120',
      align: 'center',
      showOverflowTooltip: true
    },
    {
      prop: 'createTime',
      label: '创建时间',
      minWidth: '180',
      align: 'center',
      showOverflowTooltip: true
    },
    {
      prop: 'updateTime',
      label: '更新时间',
      minWidth: '180',
      align: 'center',
      showOverflowTooltip: true
    },
    {
      type: 'operation',
      label: '行为',
      minWidth: '120',
      align: 'center',
      // fixed: 'right',
      btns: [
        { type: 'rowAdd', label: '新增规格值' },
        { type: 'edit', label: '编辑' },
        { type: 'delete', label: '删除' }
      ]
    }
  ]
}

export default skuContentConfig
